package com.jackchan.homework.sysw.repository;

import com.jackchan.homework.sysw.entity.Material;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by ch-hui on 15/12/20.
 */
public interface MaterialDao extends
        PagingAndSortingRepository<Material, Long>,
        JpaSpecificationExecutor<Material> {

        Iterable<Material> findByOpType(Integer opType);
}
